package net.csdn.business.discuss.feign.config;

import feign.Logger;
import feign.codec.ErrorDecoder;
import net.csdn.business.discuss.feign.decoder.SystemFeignErrorDecoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;

/**
 * @ClassName SystemFeignConfiguration
 * @Description TODO
 * @Author zhangyl
 * @Date 2023/7/20 09:31
 */
public class SystemFeignConfiguration {
    @Bean
    //@Profile(value = {"dev", "test", "pre"})
    public Logger.Level logLevel() {
        return Logger.Level.FULL;
    }

    @Bean
    public ErrorDecoder decoder() {
        return new SystemFeignErrorDecoder();
    }
}